package com.tools.cleanmaster.bean;

import android.content.Context;
import android.content.Intent;

import com.tools.cleanmaster.CleanApplication;
import com.tools.cleanmaster.ui.activity.MainActivity;

/**
 * Created by wuyanfei on 16/7/6.
 */
public class MainInfoItem extends StorageInfoItem {

    public MainInfoItem(Context context) {
        super(context);
    }

    @Override
    public boolean isClickable() {
        return true;
    }

    @Override
    public void onClick() {
        //MakingSweetCandyHelper.tryRemoveLockScreen(CleanApplication.getInstance());
        Context context = CleanApplication.getInstance();
        Intent intent = new Intent(context, MainActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        context.startActivity(intent);
    }
}
